import request from '@/utils/request'
// var qiniu = require('qiniu-js')
// import { getTimeForQiniu } from './date'

export function getproductMsg(data) {
  return request({
    url: 'api/v1/backend/elm/market/product',
    method: 'post',
    data
  })
}

export function getproductAdd(data) {
  return request({
    url: 'api/v1/backend/elm/market/product/add',
    method: 'post',
    data
  })
}

export function getproductEdit(data) {
  return request({
    url: 'api/v1/backend/elm/market/product/edit',
    method: 'post',
    data
  })
}

export function getproductShow(data) {
  return request({
    url: 'api/v1/backend/elm/market/product/show',
    method: 'post',
    data
  })
}

export function getproductDel(data) {
  return request({
    url: 'api/v1/backend/elm/market/product/del',
    method: 'post',
    data
  })
}

export function getproductOn(data) {
  return request({
    url: 'api/v1/backend/elm/market/product/status',
    method: 'post',
    data
  })
}
